/*
 * File Name:               AsyncBehavior.cs
 * 
 * Description:             普通类
 * Author:                  lisiyu
 * Create Date:             2016/06/28
 */

using System;
using UnityEngine;

public class XAsyncBehavior : MonoBehaviour
{
    private Action mSyncUpdate;
    void Start()
    {
        mSyncUpdate = XAsyncHelper.Singleton.beginLoop();
        DontDestroyOnLoad(this);
    }

    void Update()
    {
        mSyncUpdate();
    }
}
